package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.ExperimentProcessDetail;
import com.zhijian.medical.entity.vo.request.ExperimentProcessDetailSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.ExperimentProcessDetailSearchVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessDetailVo;

import java.util.List;

public interface ExperimentProcessDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ExperimentProcessDetail record);

    int insertSelective(ExperimentProcessDetail record);

    ExperimentProcessDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExperimentProcessDetail record);

    int updateByExperimentProcessId(ExperimentProcessDetailSaveOrUpdateVo record);

    int updateByPrimaryKey(ExperimentProcessDetail record);

    int count(ExperimentProcessDetailSearchVo experimentProcessDetailSearchVo);

    List<ExperimentProcessDetailVo> selectList(ExperimentProcessDetailSearchVo experimentProcessDetailSearchVo);

    ExperimentProcessDetailVo selectVoById(Long id);

    /**
     * 根据实验流程id查找vo
     *
     * @param experimentProcessId
     * @return
     */
    ExperimentProcessDetailVo selectVoByExperimentProcessId(Long experimentProcessId);

    /**
     * 根据流程id修改检验日期
     *
     * @param experimentProcessId
     * @return
     */
    int updateDateByExperimentProcessId(Long experimentProcessId);
}